LassoScript Utility
Basics Browse Detail

[Net->LocalAddress]

Tag Link [Net->LocalAddress] Category Networking
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

[Net->LocalAddress] returns the address of the machine on which Lasso is running.

Syntax

<?LassoScript
Variable: 'Connection' = (Net);
Output: $Connection->(LocalAddress);
?>

Parameters

No Parameters Required.

Examples

To output the local and remote addresses from a connection:

Use the [Net->LocalAddress] and [Net->RemoteAddress] tags. The following example opens a [Net] connection to a remote server and ouptus the local and remote addresses.

[Variable: 'myConnection' = (Net)]
[Var: 'Result' = $myConnection->(Connect: 'www.example.com', 80)]
Local: [$myConnection->LocalAddress]
<br>Remote: [$myConnection->RemoteAddress]

Local: 127.0.0.1
Remote: www.example.com